<!doctype html>
<html lang="en">
<head>
    <title>Document</title>
    <include file="../simpleboot3/public@function"/>
    <script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js" language="JavaScript"></script>
    <script src="__STATIC__/js/layer/layer.js"></script>
    <style>
        input{margin:10px 80px 10px 10px;}

    </style>
    <meta charset="UTF-8">
    <title>会员充值查询</title>
</head>
<body>
<foreach name="member" item="vo">


<form method="post" name="form2" id="form2" action="{:url('member/addition',array('id'=>$vo['id']))}">


    <h4>会员信息</h4>
    卡面卡号: <input type="text" name="card_id" value="{$vo.card_id}" class="input2" readonly >
    会员姓名: <input type="text" name="uname"  value="{$vo.uname}" id="inp" readonly>&nbsp;<br>
    会员余额:<input type="text" name="balance"  value="{$vo.balance}"  readonly id="2">
    实收金额:<input type="text" name="money"  value="" id="3"><br>
    赠送金额:<input type="text" name="sendmoney"  value="" id="4">
    充值总金额:<input type="text" name="allmoney"  value="" id="1" readonly><br>
    充后总余额:<input type="text" name="allbalance"  value="" id="5" readonly>
    充值时间:<input type="date" name="ctime"  value="" id="6" ><br>
    充值方式:
    <select name="way" style="height: 35px;width: 80px;font-size: large" >
        <option value="现金">现金</option>
        <option value="微信">微信</option>
        <option value="支付宝">支付宝</option>
        <option value="银行卡">银行卡</option>
    </select><br>






    <input type="button" value="取消" style="height: 35px;width: 80px" id="btn_cancel"/>
    <input type="submit" value="充值[Enter]" style="height: 35px;width: 80px" />
    <input type="button" name=”Submit” onclick="javascript:window.location='recharge'" value="返回上一页" style="height: 35px;width: 80px">
</form>
</foreach>
</body>
</html>
<script>
    $("#btn_cancel").click(function(){
        $("#1").val("");
        $("#6").val("");

        $("#3").val("");
        $("#4").val("");
        $("#5").val("");

    });
</script>


<script>
    $("#1").click(function(){
        //var balance=$("#2")[0].value;
        var money=$("#3")[0].value;
        var sendmoney=$("#4")[0].value;
        //var zong=0;
        zong = parseFloat(money)+parseFloat(sendmoney);
        //var zong=Number(balance +money+sendmoney);
        //alert(zong);
        $("#1").val(zong);



    });
</script>
<script>
    $("#5").click(function(){
        var balance=$("#2")[0].value;
        var money=$("#3")[0].value;
        var sendmoney=$("#4")[0].value;
        //var zong=0;
        zong = parseFloat(balance)+parseFloat(money)+parseFloat(sendmoney);
        //var zong=Number(balance +money+sendmoney);
        //alert(zong);
        $("#5").val(zong);



    });
</script>
<!--
<script>
    $("#6").click(function(){
        var timestamp=new Date().getTime();


        $("#6").val(timestamp)
    });
</script>-->
